<?php
$files = $this->files;
?>
<div class="content-box">

    <div class="content-box-header">
        <h3>PDF Issue</h3>
        <ul class="content-box-tabs">
            <li><a class="default-tab" href="#tab1">Table</a></li>
        </ul>
        <div class="clear"></div>
    </div>
    <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
            <a class="btn" href="/admin/upload/add">Add new</a>
            <table class="table table-striped">
                <thead>
                <tr>
                    <th>id</th>
                    <th>Issue name</th>
                    <th></th>
                </tr>
                </thead>
                <?php foreach ($files as $file): ?>
                <tr>
                    <td><?php echo $file['id'] ?></td>
                    <td><?php echo $this->escape($file['issue']['name']); ?></td>
                    <td>
                        <a href="/admin/upload/delete/id/<?php echo $file['id'] ?>" class="btn btn-danger delete">Delete</a>
                    </td>
                </tr>
                <?php endforeach; ?>
            </table>
        </div>
    </div>
</div>